<%= header %>
<%= boomerangScriptMin %>
<script src="16-wrap.js" type="text/javascript"></script>
<script>
function errorFunction() {
	a.foo = 1;
}

function goodFunction(propName, value) {
	return 2;
}

BOOMR_test.init({
	testAfterOnBeacon: true,
	Errors: {
		enabled: true,

		// turn off global monitor
		monitorGlobal: false
	}
});

var wrappedBad = BOOMR.plugins.Errors.wrap(errorFunction);
wrappedBad();

// this code shouldn't execute because wrappedBad() should throw an exception
window.ranAnyways = true;
</script>
<%= footer %>
